package com.eas.biz.service.statistic.domain;

import java.util.HashMap;
import java.util.Map;

import com.eas.biz.service.user.domain.SchoolInfo;

public class SchoolStatistic extends BaseExamStatistic {

    private long schoolId;

    private SchoolInfo schoolInfo;

    private long areaId;

    private Map<String, SchoolSubjectStatistic> subjectMap;

    public SchoolStatistic() {
        super();
        subjectMap = new HashMap<String, SchoolSubjectStatistic>();
    }

    public void addSubjectStatistic(SchoolSubjectStatistic subject) {
        if (subject != null) {
            subjectMap.put(subject.getSubject(), subject);
        }
    }

    public SchoolSubjectStatistic getSubjectStatistic(String subject) {
        return subjectMap.get(subject);
    }

    public long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(long schoolId) {
        this.schoolId = schoolId;
    }

    public Map<String, SchoolSubjectStatistic> getSubjectMap() {
        return subjectMap;
    }

    public void setSubjectMap(Map<String, SchoolSubjectStatistic> subjectMap) {
        this.subjectMap = subjectMap;
    }

    public long getAreaId() {
        return areaId;
    }

    public void setAreaId(long areaId) {
        this.areaId = areaId;
    }

    public SchoolInfo getSchoolInfo() {
        return schoolInfo;
    }

    public void setSchoolInfo(SchoolInfo schoolInfo) {
        this.schoolInfo = schoolInfo;
    }

}
